package gui;

import javax.swing.Box;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import java.awt.Color;
import java.awt.BorderLayout;
import javax.swing.JSeparator;
import javax.swing.JTextArea;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import javax.swing.BoxLayout;
import javax.swing.JLayeredPane;
import javax.swing.UIManager;
import java.awt.Font;
import java.awt.Toolkit;

public class GameTable extends JFrame {
        private JTextField chatBox;
        private JTextField textField;
        public GameTable() {
               
                JPanel GAMEPANEL = new JPanel();
                GAMEPANEL.setBackground(new Color(47, 79, 79));
                getContentPane().add(GAMEPANEL, BorderLayout.CENTER);
                GAMEPANEL.setLayout(null);
               
                JLabel lblPlayerCard2D = new JLabel("");
                lblPlayerCard2D.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayerCard2D.setBounds(104, 551, 49, 70);
                GAMEPANEL.add(lblPlayerCard2D);
               
                JLabel lblPlayerCard3D = new JLabel("");
                lblPlayerCard3D.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayerCard3D.setBounds(163, 551, 49, 70);
                GAMEPANEL.add(lblPlayerCard3D);
               
                JLabel lblPlayerCard4D = new JLabel("");
                lblPlayerCard4D.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayerCard4D.setBounds(222, 551, 49, 70);
                GAMEPANEL.add(lblPlayerCard4D);
               
                JLabel lblPlayerCard5D = new JLabel("");
                lblPlayerCard5D.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayerCard5D.setBounds(281, 551, 49, 70);
                GAMEPANEL.add(lblPlayerCard5D);
               
                JLabel lblPlayerCard1 = new JLabel("");
                lblPlayerCard1.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayerCard1.setBounds(10, 551, 49, 70);
                GAMEPANEL.add(lblPlayerCard1);
               
                JButton btnFoldButton = new JButton("Fold");
                btnFoldButton.setBackground(new Color(47, 79, 79));
                btnFoldButton.setBounds(10, 632, 99, 32);
                GAMEPANEL.add(btnFoldButton);
               
                JButton btnCallButton = new JButton("Call");
                btnCallButton.setBackground(new Color(47, 79, 79));
                btnCallButton.setBounds(121, 632, 99, 32);
                GAMEPANEL.add(btnCallButton);
               
                JButton btnBetButton = new JButton("Bet");
                btnBetButton.setBackground(new Color(47, 79, 79));
                btnBetButton.setBounds(232, 632, 99, 32);
                GAMEPANEL.add(btnBetButton);
               
                chatBox = new JTextField();
                chatBox.setBounds(600, 642, 397, 22);
                GAMEPANEL.add(chatBox);
                chatBox.setColumns(10);
               
                JTextArea txtrPlayer = new JTextArea();
                txtrPlayer.setForeground(Color.LIGHT_GRAY);
                txtrPlayer.setBackground(new Color(47, 79, 79));
                txtrPlayer.setText("Player 1");
                txtrPlayer.setBounds(10, 11, 91, 22);
                GAMEPANEL.add(txtrPlayer);
               
                JTextArea txtrPlayer_1 = new JTextArea();
                txtrPlayer_1.setForeground(Color.LIGHT_GRAY);
                txtrPlayer_1.setBackground(new Color(47, 79, 79));
                txtrPlayer_1.setText("Player 2");
                txtrPlayer_1.setBounds(10, 151, 91, 22);
                GAMEPANEL.add(txtrPlayer_1);
               
                JTextArea txtrPlayer_2 = new JTextArea();
                txtrPlayer_2.setForeground(Color.LIGHT_GRAY);
                txtrPlayer_2.setBackground(new Color(47, 79, 79));
                txtrPlayer_2.setText("Player 3");
                txtrPlayer_2.setBounds(10, 289, 91, 22);
                GAMEPANEL.add(txtrPlayer_2);
               
                JTextArea txtrChatArea = new JTextArea();
                txtrChatArea.setText("Chat Area");
                txtrChatArea.setBounds(600, 487, 397, 150);
                GAMEPANEL.add(txtrChatArea);
               
                JTextArea txtrPlayer_3 = new JTextArea();
                txtrPlayer_3.setForeground(Color.LIGHT_GRAY);
                txtrPlayer_3.setBackground(new Color(47, 79, 79));
                txtrPlayer_3.setText("Player 4");
                txtrPlayer_3.setBounds(547, 11, 91, 22);
                GAMEPANEL.add(txtrPlayer_3);
               
                JTextArea txtrPlayer_4 = new JTextArea();
                txtrPlayer_4.setForeground(Color.LIGHT_GRAY);
                txtrPlayer_4.setBackground(new Color(47, 79, 79));
                txtrPlayer_4.setText("Player 5");
                txtrPlayer_4.setBounds(547, 151, 91, 22);
                GAMEPANEL.add(txtrPlayer_4);
               
                JLabel lblPot = new JLabel("Pot:");
                lblPot.setForeground(Color.LIGHT_GRAY);
                lblPot.setBackground(new Color(47, 79, 79));
                lblPot.setBounds(819, 458, 46, 14);
                GAMEPANEL.add(lblPot);
               
                JTextArea textArea_8 = new JTextArea();
                textArea_8.setBackground(new Color(47, 79, 79));
                textArea_8.setForeground(Color.LIGHT_GRAY);
                textArea_8.setFont(new Font("Arial", Font.BOLD, 36));
                textArea_8.setText("999 $");
                textArea_8.setBounds(848, 433, 149, 43);
                GAMEPANEL.add(textArea_8);
               
                textField = new JTextField();
                textField.setBounds(346, 638, 86, 20);
                GAMEPANEL.add(textField);
                textField.setColumns(10);
               
                JButton btnAllin = new JButton("ALL-IN!");
                btnAllin.setBackground(new Color(47, 79, 79));
                btnAllin.setBounds(442, 632, 99, 32);
                GAMEPANEL.add(btnAllin);
               
                JTextArea txtrBet = new JTextArea();
                txtrBet.setForeground(Color.LIGHT_GRAY);
                txtrBet.setBackground(new Color(47, 79, 79));
                txtrBet.setText("Bet");
                txtrBet.setBounds(346, 615, 86, 22);
                GAMEPANEL.add(txtrBet);
               
                JLabel lblPlayer1C1 = new JLabel("");
                lblPlayer1C1.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer1C1.setBounds(10, 42, 49, 70);
                GAMEPANEL.add(lblPlayer1C1);
               
                JLabel lblPlayer1C2 = new JLabel("");
                lblPlayer1C2.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer1C2.setBounds(104, 42, 49, 70);
                GAMEPANEL.add(lblPlayer1C2);
               
                JLabel lblPlayer1C3 = new JLabel("");
                lblPlayer1C3.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer1C3.setBounds(163, 42, 49, 70);
                GAMEPANEL.add(lblPlayer1C3);
               
                JLabel lblPlayer1C4 = new JLabel("");
                lblPlayer1C4.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer1C4.setBounds(222, 42, 49, 70);
                GAMEPANEL.add(lblPlayer1C4);
               
                JLabel lblPlayer1C5 = new JLabel("");
                lblPlayer1C5.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer1C5.setBounds(281, 42, 49, 70);
                GAMEPANEL.add(lblPlayer1C5);
               
                JLabel lblPlayer2C1 = new JLabel("");
                lblPlayer2C1.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer2C1.setBounds(10, 181, 49, 70);
                GAMEPANEL.add(lblPlayer2C1);
               
                JLabel lblPlayer2C2 = new JLabel("");
                lblPlayer2C2.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer2C2.setBounds(104, 181, 49, 70);
                GAMEPANEL.add(lblPlayer2C2);
               
                JLabel lblPlayer2C3 = new JLabel("");
                lblPlayer2C3.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer2C3.setBounds(163, 181, 49, 70);
                GAMEPANEL.add(lblPlayer2C3);
               
                JLabel lblPlayer2C4 = new JLabel("");
                lblPlayer2C4.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer2C4.setBounds(222, 181, 49, 70);
                GAMEPANEL.add(lblPlayer2C4);
               
                JLabel lblPlayer2C5 = new JLabel("");
                lblPlayer2C5.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer2C5.setBounds(281, 181, 49, 70);
                GAMEPANEL.add(lblPlayer2C5);
               
                JLabel lblPlayer3C1 = new JLabel("");
                lblPlayer3C1.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer3C1.setBounds(10, 314, 49, 70);
                GAMEPANEL.add(lblPlayer3C1);
               
                JLabel lblPlayer3C2 = new JLabel("");
                lblPlayer3C2.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer3C2.setBounds(104, 314, 49, 70);
                GAMEPANEL.add(lblPlayer3C2);
               
                JLabel lblPlayer3C3 = new JLabel("");
                lblPlayer3C3.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer3C3.setBounds(163, 314, 49, 70);
                GAMEPANEL.add(lblPlayer3C3);
               
                JLabel lblPlayer3C4 = new JLabel("");
                lblPlayer3C4.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer3C4.setBounds(222, 314, 49, 70);
                GAMEPANEL.add(lblPlayer3C4);
               
                JLabel lblPlayer3C5 = new JLabel("");
                lblPlayer3C5.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer3C5.setBounds(281, 314, 49, 70);
                GAMEPANEL.add(lblPlayer3C5);
               
                JLabel lblPlayer4C1 = new JLabel("");
                lblPlayer4C1.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer4C1.setBounds(548, 42, 49, 70);
                GAMEPANEL.add(lblPlayer4C1);
               
                JLabel lblPlayer4C2 = new JLabel("");
                lblPlayer4C2.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer4C2.setBounds(642, 42, 49, 70);
                GAMEPANEL.add(lblPlayer4C2);
               
                JLabel lblPlayer4C3 = new JLabel("");
                lblPlayer4C3.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer4C3.setBounds(701, 42, 49, 70);
                GAMEPANEL.add(lblPlayer4C3);
               
                JLabel lblPlayer4C4 = new JLabel("");
                lblPlayer4C4.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer4C4.setBounds(760, 42, 49, 70);
                GAMEPANEL.add(lblPlayer4C4);
               
                JLabel lblPlayer4C5 = new JLabel("");
                lblPlayer4C5.setIcon(new ImageIcon(GameTable.class.getResource("/images/back_blue.png")));
                lblPlayer4C5.setBounds(819, 42, 49, 70);
                GAMEPANEL.add(lblPlayer4C5);
               
                JTextArea txtPlayer1Money = new JTextArea();
                txtPlayer1Money.setForeground(Color.LIGHT_GRAY);
                txtPlayer1Money.setBackground(new Color(47, 79, 79));
                txtPlayer1Money.setText("$$$$");
                txtPlayer1Money.setBounds(346, 90, 50, 22);
                GAMEPANEL.add(txtPlayer1Money);
               
                JTextArea txtPlayer2Money = new JTextArea();
                txtPlayer2Money.setText("$$$$");
                txtPlayer2Money.setForeground(Color.LIGHT_GRAY);
                txtPlayer2Money.setBackground(new Color(47, 79, 79));
                txtPlayer2Money.setBounds(346, 229, 50, 22);
                GAMEPANEL.add(txtPlayer2Money);
               
                JTextArea txtPlayer3Money = new JTextArea();
                txtPlayer3Money.setText("$$$$");
                txtPlayer3Money.setForeground(Color.LIGHT_GRAY);
                txtPlayer3Money.setBackground(new Color(47, 79, 79));
                txtPlayer3Money.setBounds(346, 362, 50, 22);
                GAMEPANEL.add(txtPlayer3Money);
               
                JTextArea txtPlayer4Money = new JTextArea();
                txtPlayer4Money.setText("$$$$");
                txtPlayer4Money.setForeground(Color.LIGHT_GRAY);
                txtPlayer4Money.setBackground(new Color(47, 79, 79));
                txtPlayer4Money.setBounds(885, 90, 50, 22);
                GAMEPANEL.add(txtPlayer4Money);
                              
                JTextArea txtrUser = new JTextArea();
                txtrUser.setForeground(Color.LIGHT_GRAY);
                txtrUser.setBackground(new Color(47, 79, 79));
                txtrUser.setText("RCAIMANO");
                txtrUser.setBounds(10, 518, 143, 22);
                GAMEPANEL.add(txtrUser);
               
                JTextArea txtrMinBet = new JTextArea();
                txtrMinBet.setForeground(Color.LIGHT_GRAY);
                txtrMinBet.setBackground(new Color(47, 79, 79));
                txtrMinBet.setText("Min Bet:");
                txtrMinBet.setBounds(819, 358, 68, 22);
                GAMEPANEL.add(txtrMinBet);
               
                JTextArea txtrMaxBet = new JTextArea();
                txtrMaxBet.setForeground(Color.LIGHT_GRAY);
                txtrMaxBet.setBackground(new Color(47, 79, 79));
                txtrMaxBet.setText("Max Bet:");
                txtrMaxBet.setBounds(819, 400, 68, 22);
                GAMEPANEL.add(txtrMaxBet);
               
                JTextArea txtMinBetValue = new JTextArea();
                txtMinBetValue.setForeground(Color.LIGHT_GRAY);
                txtMinBetValue.setBackground(new Color(47, 79, 79));
                txtMinBetValue.setFont(new Font("Arial", Font.PLAIN, 29));
                txtMinBetValue.setText("999");
                txtMinBetValue.setBounds(889, 345, 108, 32);
                GAMEPANEL.add(txtMinBetValue);
               
                JTextArea txtMaxBetValue = new JTextArea();
                txtMaxBetValue.setForeground(Color.LIGHT_GRAY);
                txtMaxBetValue.setBackground(new Color(47, 79, 79));
                txtMaxBetValue.setText("999");
                txtMaxBetValue.setFont(new Font("Arial", Font.PLAIN, 29));
                txtMaxBetValue.setBounds(889, 390, 108, 32);
                GAMEPANEL.add(txtMaxBetValue);
               
                JTextArea txtPlayerMoney = new JTextArea();
                txtPlayerMoney.setText("999 $");
                txtPlayerMoney.setForeground(Color.LIGHT_GRAY);
                txtPlayerMoney.setFont(new Font("Arial", Font.BOLD, 36));
                txtPlayerMoney.setBackground(new Color(47, 79, 79));
                txtPlayerMoney.setBounds(406, 551, 135, 43);
                GAMEPANEL.add(txtPlayerMoney);
               
                JButton btnLeave = new JButton("Leave");
                btnLeave.setBackground(new Color(47, 79, 79));
                btnLeave.setBounds(678, 453, 68, 23);
                GAMEPANEL.add(btnLeave);
               
                JButton btnStart = new JButton("Start");
                btnStart.setBackground(new Color(47, 79, 79));
                btnStart.setBounds(600, 453, 68, 23);
                GAMEPANEL.add(btnStart);
        }
}